package shouji;
/*
2.1 第一步：设计和实现以下类

    （1）手机卡类 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量 行为：显示（卡号 + 用户名 + 当前余额）

    （2）通话套餐类 特征：通话时长、短信条数、每月资费 行为: 显示所有套餐信息     （3）上网套餐类 特征：上网流量、每月资费 行为：显示所有套餐信息

    （4）用户消费信息类 特征：统计通话时长、统计上网流量、每月消费金额
 */
public class ConsumerInformation {
    //统计通话时长
    private int countCallDuration;
    //统计上网流量
    private double statisticsOfOnlineTraffic;
    //每月消费金额
    private double monthlyConsumptionAmount;

    ConsumerInformation(){}

    ConsumerInformation(int countCallDuration,double statisticsOfOnlineTraffic,double monthlyConsumptionAmount){
        this.countCallDuration = countCallDuration;
        this.statisticsOfOnlineTraffic = statisticsOfOnlineTraffic;
        this.monthlyConsumptionAmount = monthlyConsumptionAmount;
    }

    public void show(){
        System.out.println("通话时长:"+countCallDuration+"上网流量:"+statisticsOfOnlineTraffic+"每月消费金额:"+monthlyConsumptionAmount);
    }

    public int getCountCallDuration() {

        return countCallDuration;
    }

    public void setCountCallDuration(int countCallDuration) {
        this.countCallDuration = countCallDuration;
    }

    public double getStatisticsOfOnlineTraffic() {
        return statisticsOfOnlineTraffic;
    }

    public void setStatisticsOfOnlineTraffic(double statisticsOfOnlineTraffic) {
        this.statisticsOfOnlineTraffic = statisticsOfOnlineTraffic;
    }

    public double getMonthlyConsumptionAmount() {
        return monthlyConsumptionAmount;
    }

    public void setMonthlyConsumptionAmount(double monthlyConsumptionAmount) {
        this.monthlyConsumptionAmount = monthlyConsumptionAmount;
    }
}
